#/bin/bash
mkdir -p ~/smb/public
mkdir -p ~/smb/tech
mkdir -p ~/smb/57
mkdir -p ~/smb/hardware
mkdir -p ~/smb/users
echo "linux123" | sudo -S mount.cifs //192.168.1.50/public ~/smb/public -o password="",uid=1000,gid=100,iocharset=utf8,vers=1.0
echo "linux123" | sudo -S mount.cifs //192.168.1.50/tech ~/smb/tech -o password="",uid=1000,gid=100,iocharset=utf8,vers=1.0
echo "linux123" | sudo -S mount.cifs //192.168.1.57/work ~/smb/57 -o username=dsqiu,password=startX12345678,uid=1000,gid=100,iocharset=utf8
echo "linux123" | sudo -S mount.cifs //192.168.1.57/hardware ~/smb/hardware -o username=dsqiu,password=startX12345678,uid=1000,gid=100,iocharset=utf8
echo "linux123" | sudo -S mount.cifs //192.168.1.57/users ~/smb/users -o username=dsqiu,password=startX12345678,uid=1000,gid=100,iocharset=utf8

